package hello_pkg;
import java.sql.*;

  public class dbConn
  {
         public static void main( String[] args)
         {
             Connection conn = null;
             /* jdbc:mysql://[hostname]:[port number]/[DB name] */
             String url= "jdbc:mysql://localhost:3306/rorprj_db";
             try {
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
                   conn = DriverManager.getConnection(url,"root","1111");
                   System.out.println("Mysql JDBC Driver Connection");
                   conn.close();
             }
             catch(Throwable e)
             {
                   System.out.println(e);
             }
         }
    }
